home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000214_news@newsmaster….columbia.edu _Thu Aug 21 22:58:21 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id WAA09054
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 21 Aug 1997 22:58:21 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id WAA11261
for kermit.misc@watsun; Thu, 21 Aug 1997 22:58:20 -0400 (EDT)
Path: news.columbia.edu!sol.ctr.columbia.edu!news.indiana.edu!vixen.cso.uiuc.edu!news-peer.sprintlink.net!news.sprintlink.net!Sprint!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
From: jrd@cc.usu.edu (Joe Doupnik)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: echo command works differently between 3.14 and 3.15
Message-ID: <PYDViO7VXbx1@cc.usu.edu>
Date: 21 Aug 97 15:21:43 MDT
References: <33f9b133.266082@news.calvacom.fr>
Organization: Utah State University
Lines: 77
Xref: news.columbia.edu comp.protocols.kermit.misc:7529
In article <33f9b133.266082@news.calvacom.fr>, do11@calva.net (Dominique Ottello) writes:
> Hello from France.
>
> I apologize for my wrong English. I hope you understand me.
>
> I think there is a problem with echo command within a take file between
> MS-DOS Kermit 3.14 and 3.15 beta 21
>
> With MS-DOS Kermit 3.14 both the macro Disp and the echo command will
> display "Yes" in green (With ANSI.SYS loaded).
>
> With MS-DOS Kermit 3.15 only the macro Disp displays "Yes" in green.
> Echo command displays the contents of macro's Ge and No.
> ANSI escape sequences are not correctly executed when these sequences are
> within a macro inside an echo command.
> (See macro and commands hereunder)
>
> ; Displays White on Blue
> assign No \27[0;1;37;44m
> ; Displays Green on Blue
> assign Ge \27[0;1;32;44m
> assign Disp echo {From Macro Disp : \m(Ge)Yes\m(No)}
> Disp
> echo {From Echo Command : \m(Ge)Yes\m(No)}
>
---------
Translating this into words for other readers, ASSIGN evaluates
its arguments before storing the result into the named variable. DEFINE
does not. Neither changes \numbers to binary form.
Next, processing \m(macro-name) is a parallel process to reducing
\numbers, not an iterative one. That's the key here.
Macro DISP receives argument
echo {From Macro Disp: \27[0;1;32;44mYes\27[0;1;37;44m}
where the \m(macro-name) parts have had their contents substituted.
Invoking macro DISP causes the above string to be passed through the parser
again by the ECHO command, and ECHO asks for \numbers to be converted to
binary format.
Then the single ECHO command below it sees not that \number style
string but rather \m(macro-name) string, \m(name) items are parsed to their
replacment text, and thus ECHO sees literal \27[ etc characters. \number and
\m(name) are parallel but not self-calling in MSK 3.15. Thus we see \27[ etc
on the screen.
Or in simpler terms, \numbers are not substitution variables.
MSK 3.14 did \number conversion in individual commands such as ECHO,
and hence in series with substitution variable work by the parser, but MSK
3.15 moved \num conversion into the parser in parallel with substitution
variables.
Now one may well ask if this is a good thing or not, and to be honest
at the moment it could be either. What it is is a change from MSK 3.14 because
the parsing code has had a major upgrade. The manner of parsing \numbers has
changed between versions, and I am hesitant to revise it again for fear of
breaking a lot of things in an extremely intricate section of code.
Nevertheless, I'll have a look at it over the weekend to see if there
is a compromise of reasonable proportions.
> Is it a bug or a new feature of 3.15 version ?
Feature, FEATURE, F E A T U R E. Why are people snickering? Hush.
See my last sentence above.
Thanks,
Joe D.
----------
> I am not able to find any explanations in the MSK315.DOC file.
>
> If it is a new feature, it will be very hard to move my applications under
> version 3.15 because there are many commands like :
> echo {\27[\m(Line);\m(Column)H\m(Ge)Yes\m(No)}
> to put a green "Yes" on defined screen areas
>
> Nevertheless I am very interested by version 3.15 with local variables,
> declare arrays, minput, switch, \Feval(), for, while, xif, if else and
> other improvements.
>
> Best regards,
>
>
> == Dominique Ottello == do11@calva.net == Paris == France ==